package com.trepadora.model;

import net.sf.json.JSONObject;

/**
 * 
 * @author mkorwel
 * 
 */
public class User {

	private String id;

	private String username;

	private String password;

	private String email;

	public User(final JSONObject jsonObject) {
		this.id = jsonObject.getString("_id");
		this.username = jsonObject.getString("username");
		this.password = jsonObject.getString("password");
		this.email = jsonObject.getString("email");

	}

	public String getEmail() {
		return this.email;
	}

	public String getId() {
		return this.id;
	}

	public String getPassword() {
		return this.password;
	}

	public String getUsername() {
		return this.username;
	}

	public void setEmail(final String email) {
		this.email = email;
	}

	public void setId(final String id) {
		this.id = id;
	}

	public void setPassword(final String password) {
		this.password = password;
	}

	public void setUsername(final String username) {
		this.username = username;
	}

}
